package org.dlsu.mt;

import org.dlsu.mt.parser.Word;

/**
 * The MorphInterface acts as a bridge between the Morphological Analyzer and
 * the Lexical Analyzer. This interface requires the implementation of the getRoot
 * method which analyzes the word to get the root word and assign the morphological
 * attributes that it gathers and associates these to the Word object
 * that it willl return.
 */

public interface MorphInterface
{
	/**
	 * Returns a Word object that has its root word and attributes
	 * associated. This method modifies input Word object to set the
	 * root and attributes. Included in this method is the actual
	 * analysis of the word.
	 *
	 * @param the word to be analyzed
	 * @return word  associated with its root word and attributes
	 */
	public Word getRoot(Word word );

	/**
	 * Returns a Word object that has its root word and attributes
	 * associated. This method creates a new Word object from the
	 * input word. Included in this method is the actual analysis
	 * of the word.
	 *
	 * @param the word to be analyzed
	 * @return word  associated with its root word and attributes
	 */

	public Word getRoot(String word );
}